﻿<ItemsControl x:Class="WPFIPodControls.IPodPageScroller" 
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:lcl="clr-namespace:WPFIPodControls"
              Loaded="OnLoaded"
         >
    <ItemsControl.Resources>
        <DataTemplate x:Key="defaultDataTemplate">
            <Grid>
                <ContentControl Content="{Binding .}" />
            </Grid>
        </DataTemplate>

    </ItemsControl.Resources>
    <ItemsControl.Template>
        <ControlTemplate TargetType="{x:Type lcl:IPodPageScroller}">
            <Grid x:Name="gridRoot" ClipToBounds="True" 
                  Background="{TemplateBinding Background}"
                  HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                  VerticalAlignment="{TemplateBinding VerticalAlignment}"
                  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
                <ContentPresenter x:Name="p1">
                </ContentPresenter>
                <ContentPresenter x:Name="p2" Visibility="Collapsed">
               </ContentPresenter>
            </Grid>
        </ControlTemplate>
    </ItemsControl.Template>
</ItemsControl>